// @ts-ignore
/* eslint-disable */
import { request } from 'umi';
/**
 * 获取树形 联络人列表
 * @returns
 */
// export async function recordInitAssignAccount(options?: { [key: string]: any }) {
//   return request<BaseResponseBean.response<Array<UserData.Organization>>>(
//     '/interview/record/tree',
//     {
//       method: 'POST',
//       data: options || {},
//     },
//   );
// }

// /** 获取 采访要素匹配 分页  POST */
// export async function pageInterview(options?: { [key: string]: any }) {
//   return request<BaseResponseBean.responsePage<InterviewRecordData.PageVo[]>>(
//     '/interview/record/page',
//     {
//       method: 'POST',
//       data: options || {},
//     },
//   );
// }

/** 获取 采访要素匹配 详情  POST */
export async function selectInterview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<InterviewRecordData.InterviewDetail>>('/interview/record/select', {
    method: 'POST',
    data: options || {},
  });
}


/** 保存 采访要素匹配  提交  POST */
export async function saveInterview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/v1/interview/record/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 采访要素匹配  统计  POST */
export async function getStatisticsRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<InterviewRecordData.Statistics>>('/v1/interview/record/statistics', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 采访要素匹配  提交确认  POST */
export async function saveInterviewAudit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/interview/record/audit', {
    method: 'POST',
    data: options || {},
  });
}


// /** 保存 采访要素匹配  删除任务  POST */
// export async function deleteInterview(options?: { [key: string]: any }) {
//   return request<BaseResponseBean.response<string>>('/interview/record/delete', {
//     method: 'POST',
//     data: options || {},
//   });
// }

/**
 * 获取树形 联络人列表
 * @returns
 */
export async function recordInitAssignAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/record/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}



/**
 * 保存出行安排
 * @returns
 */
export async function saveTravgelArrangment(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/travelArrangement/save',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**
 * 报名信息
 * 
 * @returns
 */
export async function registrationInfoInit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/travelArrangement/init',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**
 * 查询活动列表
 * @returns
 */
export async function pageInterview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/record/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**
 * 删除活动主题
 * @returns
 */
export async function deleteInterview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/record/delete',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**
 * 报名
 * 
 * @returns
 */
export async function saveRegistration(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/apply/save',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**
 * 报名信息详情
 * 
 * @returns
 */
export async function detailRegistration(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/apply/detail',
    {
      method: 'POST',
      data: options || {},
    },
  );
}



/**
 * 活动主题详情
 * 
 * @returns
 */
export async function detailInterview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/record/detail',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**
 * 获取非级联选择
 * @returns
 */
export async function recordInitTree(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/record/initTree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/**
 * 获取相关报道列表
 * @returns
 */
export async function reportPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<Array<UserData.Organization>>>(
    '/v1/interview/zc/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}






